package com.generator.code.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.generator.code.mapper.MysqlMapper;
import com.generator.code.model.QryTableInfo;
import com.generator.code.model.QryTableInfoReq;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class QryInfoService {
    @Autowired
    private MysqlMapper mysqlMapper;

    public Page<QryTableInfo> qryTable(QryTableInfoReq qryTableInfoReq) {
        Page<QryTableInfo> page = new Page<>(qryTableInfoReq.getPageNum(), qryTableInfoReq.getPageSize());
        Page<QryTableInfo> qryTableInfoIPage = mysqlMapper.qryTableInfo(page, qryTableInfoReq);
        return qryTableInfoIPage;
    }
}
